//
//  Mvlist.m
//  __PRODUCTNAME__
//
//  Created by 鹏飞罗 on 16/08/13
//  Copyright (c) dllo. All rights reserved.
//

#import "Mvlist.h"
#import "Singers.h"

@implementation Mvlist
- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"singers"]) {
        NSMutableArray<Singers *> *singersArray = [NSMutableArray array];
        NSArray *singersArr = value;
        for (NSDictionary *singersDic in singersArr) {
            Singers *singers = [Singers modelWithDictionary:singersDic];
            [singersArray addObject:singers];
        }
        _singers = singersArray;
    }
}
+ (NSDictionary *)objectClassInArray{
    return @{@"singers" : [Singers class]};
}

@end
